/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.power.visual;

// File: TransparentLayoutStressTest.java
import javax.swing.*;

import java.awt.*;

import java.awt.event.*;

import net.java.dev.transparentlayout.TransparentLayout;

/**
 * TransparentLayout stress test app
 */
public class TransparentLayoutStressTest
{

  public static void main(String[] args)
  {
    JFrame f = new JFrame("TransparentLayout");
    f.setLayout(new TransparentLayout());
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setBounds(300, 300, 300, 300);

    JPanel p = new JPanel();
    p.setLayout(new TransparentLayout());
    p.add(new JButton("Button1"), new Rectangle(10, 10, 100, 30));
    p.add(new JButton("Button2"), new Rectangle(10, 50, 100, 30));
    p.add(new JButton("Button3"), new Rectangle(10, 90, 100, 30));
    p.add(new JButton("Button4"), new Rectangle(10, 130, 100, 30));

    f.add(p, new Rectangle(10, 10, 200, 200));
    f.setVisible(true);
  }

}
